<template>
  <div>
    <el-row>
      <el-button type="primary" @click="dialog_newly = true" icon="el-icon-folder-add">新增</el-button>
    </el-row>
    <el-divider></el-divider>
    <!-- 表格 -->
    <el-table size="medium" ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: 100%"
    @selection-change="handleSelectionChange" border>
      <el-table-column type="selection" width="50" align="center"></el-table-column>
      <el-table-column prop="area" label="校区" align="center" width="300"></el-table-column>
      <el-table-column prop="lou" label="楼宇" align="center" width="300"></el-table-column>
      <el-table-column prop="handle" label="操作" align="center">
        <template slot-scope="">
          <el-button size="mini" type="danger" plain>删除</el-button>
        </template>
      </el-table-column>
    </el-table>
    
    <!-- 添加楼宇信息弹窗 -->
    <el-dialog title="添加" :visible.sync="dialog_newly">
      <el-form :label-position="labelPosition" label-width="100px" style="margin-left:20%;">
        <el-form-item label="区域 :" >
          <el-select  placeholder="请选择区域" style="width:60%">
            <el-option label="1" value=""></el-option>
            <el-option label="2" value=""></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="楼宇 :" >
          <el-input  style="width:60%" placeholder="请输入楼宇" ></el-input>
        </el-form-item>
      </el-form>
         <div slot="footer" class="dialog-footer">
         <el-button @click="dialog_newly = false" >取 消</el-button>
         <el-button type="primary" @click="dialog_newly = false" class="dialogbutton">确 定</el-button>
         </div>
    </el-dialog>
    <!-- 添加楼宇信息弹窗 -->

  </div>
</template>

<script>
export default {
  data() {
    return {
      labelPosition: "left",
      dialog_newly:false,
      tableData: [
        {
          area: "蜀山",
        }
      ]
    }
  },
  methods: {
    handleSelectionChange() {
      
    }
  },
  created() {
  
  },
};
</script>
<style lang="scss" scoped>

</style>
